from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.

# 路径参数
def index(request, book_id):
    return HttpResponse(f"你查询的书籍id是：{book_id}")

# 查询字符串参数
def book(request):
    id = request.GET.get('id')
    name = request.GET.get('name')
    return HttpResponse(f"你查询书籍的id是{id}, 名称是:{name}")

